<?php
/**
 * Contact Band Header
 */


/* @var $contact Hive\Ressource */
$contact = Xview::instance()->component("ressource", "object");
$data = $contact->getData();
$html= null;

if(!empty($data['email']))
{
	$html .= '<span class="contactDetail">
				<i class="icon email"></i>
				<a class="slink" target ="_blank" href="mailto:'.$data['email'].'">
				'.$data['email'].'
				</a>
			</span>';
}
if(!empty($data['phone1']))
{
	$html .= '<span class="contactDetail">
				<i class="icon phone"></i>
				<a class="slink" target ="_blank" href="callto:'.$data['phone1'].'">
				'.$data['phone1'].'
				</a>
			</span>';
}
if(!empty($data['phone2']))
{
	$html .= '<span class="contactDetail">
				<i class="icon phone"></i>
				<a class="slink" target ="_blank" href="callto:'.$data['phone2'].'">
				'.$data['phone2'].'
				</a>
			</span>';
}	
return $html;